; Merged Mod: .\Land\Sucrose.ini, .\Water\Sucrose.ini

; Constants ---------------------------

[Constants]
global persist $swapvar = 0
global $active
global $creditinfo = 0

[Present]
$swapvar=$\global\tracking\swimming
post $active = 0
run = CommandListCreditInfo

; Shader ------------------------------

; Overrides ---------------------------

[TextureOverrideSucrosePosition]
hash = b655c335
run = CommandListSucrosePosition
$active = 1

[TextureOverrideSucroseBlend]
hash = 52230792
run = CommandListSucroseBlend

[TextureOverrideSucroseTexcoord]
hash = c43b5b80
run = CommandListSucroseTexcoord

[TextureOverrideSucroseVertexLimitRaise]
hash = 75e2c70c

[TextureOverrideSucroseIB]
hash = 06e86a68
run = CommandListSucroseIB

[TextureOverrideSucroseHead]
hash = 06e86a68
match_first_index = 0
run = CommandListSucroseHead

[TextureOverrideSucroseBody]
hash = 06e86a68
match_first_index = 9036
run = CommandListSucroseBody

[TextureOverrideSucroseFaceHeadDiffuse]
hash = e6a6b6d7
run = CommandListSucroseFaceHeadDiffuse

; CommandList -------------------------

[CommandListSucrosePosition]
if $swapvar == 0
	vb0 = ResourceSucrosePosition.0
	$active = 1
else if $swapvar == 1
	vb0 = ResourceSucrosePosition.1
	$active = 1
endif

[CommandListSucroseBlend]
if $swapvar == 0
	vb1 = ResourceSucroseBlend.0
	handling = skip
	draw = 38166,0
else if $swapvar == 1
	vb1 = ResourceSucroseBlend.1
	handling = skip
	draw = 38166,0
endif

[CommandListSucroseTexcoord]
if $swapvar == 0
	vb1 = ResourceSucroseTexcoord.0
else if $swapvar == 1
	vb1 = ResourceSucroseTexcoord.1
endif

[CommandListSucroseIB]
if $swapvar == 0
	handling = skip
	drawindexed = auto
else if $swapvar == 1
	handling = skip
	drawindexed = auto
endif

[CommandListSucroseHead]
if $swapvar == 0
	ib = ResourceSucroseHeadIB.0
else if $swapvar == 1
	ib = ResourceSucroseHeadIB.1
endif

[CommandListSucroseBody]
if $swapvar == 0
	ib = ResourceSucroseBodyIB.0
	ps-t0 = ResourceSucroseBodyDiffuse.0
	ps-t1 = ResourceSucroseBodyLightMap.0
else if $swapvar == 1
	ib = ResourceSucroseBodyIB.1
	ps-t0 = ResourceSucroseBodyDiffuse.1
	ps-t1 = ResourceSucroseBodyLightMap.1
endif

[CommandListSucroseFaceHeadDiffuse]
if $swapvar == 0
else if $swapvar == 1
endif

[CommandListCreditInfo]
if $swapvar == 0
	if $creditinfo == 0 && $active == 1
		pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo.0
		pre run = CustomShader\ShaderFixes\help.ini\FormatText
		pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
		$creditinfo = 1
	endif
else if $swapvar == 1
	if $creditinfo == 0 && $active == 1
		pre Resource\ShaderFixes\help.ini\Notification = ResourceCreditInfo.1
		pre run = CustomShader\ShaderFixes\help.ini\FormatText
		pre $\ShaderFixes\help.ini\notification_timeout = time + 5.0
		$creditinfo = 1
	endif
endif

; Resources ---------------------------

[ResourceSucrosePosition.0]
type = Buffer
stride = 40
filename = .\Land\SucrosePosition.buf

[ResourceSucroseBlend.0]
type = Buffer
stride = 32
filename = .\Land\SucroseBlend.buf

[ResourceSucroseTexcoord.0]
type = Buffer
stride = 12
filename = .\Land\SucroseTexcoord.buf

[ResourceSucroseHeadIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\Land\SucroseHead.ib

[ResourceSucroseBodyIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\Land\SucroseBody.ib

[ResourceSucroseBodyDiffuse.0]
filename = .\Land\SucroseBodyDiffuse.dds

[ResourceSucroseBodyLightMap.0]
filename = .\Land\SucroseBodyLightMap.dds

[ResourceCreditInfo.0]
type = Buffer
data = "Created by LeoTorreZ"

[ResourceSucrosePosition.1]
type = Buffer
stride = 40
filename = .\Water\SucrosePosition.buf

[ResourceSucroseBlend.1]
type = Buffer
stride = 32
filename = .\Water\SucroseBlend.buf

[ResourceSucroseTexcoord.1]
type = Buffer
stride = 12
filename = .\Water\SucroseTexcoord.buf

[ResourceSucroseHeadIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\Land\SucroseHead.ib

[ResourceSucroseBodyIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\Water\SucroseBody.ib

[ResourceSucroseBodyDiffuse.1]
filename = .\Land\SucroseBodyDiffuse.dds

[ResourceSucroseBodyLightMap.1]
filename = .\Land\SucroseBodyLightMap.dds

[ResourceCreditInfo.1]
type = Buffer
data = "Created by LeoTorreZ"



; .ini generated by GIMI (Genshin-Impact-Model-Importer) mod merger script
; If you have any issues or find any bugs, please open a ticket at https://github.com/SilentNightSound/GI-Model-Importer/issues or contact SilentNightSound#7430 on discord